Repository navigation
Conversation
A header with the wordmark and the connection, a tab bar in place of the sidebar, and in each view a page header, stat cards and panels. The workers view charts the last hour's leases and the events view the events per minute, with Recharts, under the same CSP. DESIGN.md describes the new type, colour, components and layout. Refs #297
Prove the stat cards and both charts in the browser, wait for the events before drawing the lease history, cut an unlabelled worker's id in the lease table, keep every table inside its panel with a fixed layout, and describe the cards and charts in CONSOLE.md.
Stack a wide table's rows under 1100px, so no column is squeezed to a few pixels, and prove a lease id stays readable at 1280, 1024, 768 and 360px. Name a lease's worker by the one rule the details page uses, prove the current minute holds a lease stamped past the view's now and that a device id is counted per worker, and say in CONSOLE.md that a lease ending with no event is not counted back.
A click on a chart drew the ring round it. The ring now follows :focus-visible, so Tab still shows it and the arrow keys still step through the chart.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #297
The console now looks like Apex, with orange in place of Apex's green. A header holds the wordmark, the "By Callstack" chip, the connection box and Sign out. A tab bar replaces the sidebar. Each view has a page header, stat cards built from data it already loads, and its tables in panels. Long ids are cut with an ellipsis and keep the full id in
title.Two charts, drawn with Recharts and styled only by stylesheet classes:
Each chart also gives its numbers as text: a summary line and a "Minute by minute" table. The CSP is unchanged. Recharts adds no
<style>element and causes no violations.A wide table stacks its rows under 1100px, so no column gets squeezed. DESIGN.md is rewritten for the new type, colour, components and layout.
A chart draws its focus ring only for keyboard focus (
:focus-visible), not on a click; "clicking a chart shows no outline, tabbing to it does" proves it in all three browsers.Done when
--accentis used only by the wordmark, the tab underline, buttons, links, focus, the radio accent and the charts (checked by greppingstyles.css).pnpm test:consolepassed 201 of 201 locally, and that includes the newviews.spec.ts.Review
Spec review: 23 findings over two rounds, 3 fixed. Code review: 19 findings over two rounds, 16 fixed.
Spec needs: CONSOLE.md to describe the stat cards and charts. The spec allowed CONSOLE.md edits only for layout details, but the code review asked for these under "the PR updates the docs it makes true". The rules win.
Rejected:
Statusdraws the colour square beside the word. The box only moved.attention.spec.ts.skipLibCheckwas not asked for. It is needed: Recharts pulls in Redux Toolkit, whose declarations fail underexactOptionalPropertyTypes. The console's own code is still checked.react-iswas not asked for. It is Recharts' peer dependency./v1/workersrefetch. It lasts until that refetch, within a second, as ADR 0013 accepts.Written by an agent.